import request from '@/utils/request'

// 查询产品软件详情列表
export function listProductSoftwareInfo(query) {
  return request({
    url: '/produce/product-software-info/list',
    method: 'get',
    params: query
  })
}

// 查询产品软件详情详细
export function getProductSoftwareInfo(id) {
  return request({
    url: '/produce/product-software-info/' + id,
    method: 'get'
  })
}

// 新增产品软件详情
export function addProductSoftwareInfo(data) {
  return request({
    url: '/produce/product-software-info',
    method: 'post',
    data: data
  })
}

// 修改产品软件详情
export function updateProductSoftwareInfo(data) {
  return request({
    url: '/produce/product-software-info',
    method: 'put',
    data: data
  })
}

// 删除产品软件详情
export function delProductSoftwareInfo(id) {
  return request({
    url: '/produce/product-software-info/' + id,
    method: 'delete'
  })
}

// 逻辑删除产品软件详情
export function removedProductSoftwareInfo(id) {
  return request({
    url: '/produce/product-software-info/' + id,
    method: 'delete'
  })
}

// 获取所有产品软件信息
export function getAll(query) {
  return request({
    url: '/produce/product-software-info/get-all',
    method: 'get',
    params: query
  })
}